package org.csu.demo.db.persistence;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.csu.demo.db.domain.Course;
import org.springframework.stereotype.Repository;

@Repository("CourseMapper")
@Mapper
public interface CourseMapper extends BaseMapper<Course> {
    @Select("SELECT * FROM course WHERE coursename = #{coursename}")
    Course selectByCoursename(String coursename);
}